
<!--********************* Part1:Jsp Head *********************-->

<%@ page contentType="text/html;charset=UTF-8"%>  
<%@ include file="/framework/head.jsp"%>

<!--********************* Part2:Java Code *********************-->
<%
	BillMoneyInputSearchEvent event = (BillMoneyInputSearchEvent)context.getSessionValue("BillMoneyInputSearchEvent");
	ObjectList list = BillMoneyInput.fetch().search(con,event);
%>

<!--********************* Part3:JavaScript Code ***************-->
<!--start 客户端脚本区域-->
<script language=javascript>

var list_code = "listBillMoneyInput";

function doSearch()
{

	//SetValue("s_Id",GetValue("i_Id")); //费用序号

	SetValue("s_WarehouseCode",GetValue("i_WarehouseCode")); //仓库编码

	//SetValue("s_WarehouseName",GetValue("i_WarehouseName")); //仓库名称

	SetValue("s_ProductName",GetValue("i_ProductName")); //产品名称

	//SetValue("s_Spec",GetValue("i_Spec")); //规格

	//SetValue("s_Model",GetValue("i_Model")); //型号

	//SetValue("s_Unit",GetValue("i_Unit")); //计量单位

	//SetValue("s_Count",GetValue("i_Count")); //数量

	//SetValue("s_Price",GetValue("i_Price")); //单价

	//SetValue("s_Money",GetValue("i_Money")); //总价

	SetValue("s_ProviderName",GetValue("i_ProviderName")); //供应商名称

	//SetValue("s_BillType",GetValue("i_BillType")); //费用类型

	//SetValue("s_BillDate",GetValue("i_BillDate")); //费用日期

	//SetValue("s_CreateUserId",GetValue("i_CreateUserId")); //创建人序号

	//SetValue("s_CreateUser",GetValue("i_CreateUser")); //创建人

	//SetValue("s_CreateTime",GetValue("i_CreateTime")); //创建时间
    
    SetValue("s_BillDateStart",GetValue("i_BillDateStart")); //费用日期开始
    SetValue("s_BillDateEnd",GetValue("i_BillDateEnd")); //费用日期结束
	

	SetValue("s_OrderField",GetValue("i_OrderField")); //排序
	SetValue("s_OrderDesc",getCheckBoxValues("i_OrderDesc")); //升降序

	doCommonSearch();
}

function bizViewBillMoneyInput(id)
{
	viewWin("<%=Config.getSrv()%>?action_code=viewBillMoneyInput&Id="+id);
}

function doDelete()
{
	if(!hasChooseRadio("ids"))
	{
		bizMessage("删除","总成件外修费用");
		return false;
	}
	if(!bizConfirm("删除","总成件外修费用")) return false;
	SetAction("deleteBillMoneyInput");
	frm.submit();
}

function doToAdd()
{
    SetAction("toAddBillMoneyInput");
	frm.submit();
}

function doToUpdate()
{
	if(!checkOne("ids")) 
	{
		bizMessage("修改","总成件外修费用");
		return false;
	}
	SetValue("Id",getCheckBoxValue("ids"));
	SetAction("toUpdateBillMoneyInput");
	frm.submit();
}
function doToCopy()
{
	if(!checkOne("ids")) 
	{
		bizMessage("复制","总成件外修费用");
		return false;
	}
	SetValue("Id",getCheckBoxValue("ids"));
	SetAction("toCopyBillMoneyInput");
	frm.submit();
}

key_InitDefault();
key_RegSubmitHandler(doSearch);
</script>


<%=uiBody%>>

<%@ include file="/framework/menu.jsp"%>

<!--********************* Part4:Form  ***************-->
<form id=frm action="<%=Config.getSrv()%>" method="post">
<input type=hidden name="action_code" value="">
<input type=hidden name="Id" value="">
<input type=hidden name=sortOrder value="1">

<!--查询条件保留区域-->

<input type=hidden name="s_Id" value="<%=event.getId()%>"> <!--费用序号-->

<input type=hidden name="s_WarehouseCode" value="<%=event.getWarehouseCode()%>"> <!--仓库编码-->

<input type=hidden name="s_WarehouseName" value="<%=event.getWarehouseName()%>"> <!--仓库名称-->

<input type=hidden name="s_ProductName" value="<%=event.getProductName()%>"> <!--产品名称-->

<input type=hidden name="s_Spec" value="<%=event.getSpec()%>"> <!--规格-->

<input type=hidden name="s_Model" value="<%=event.getModel()%>"> <!--型号-->

<input type=hidden name="s_Unit" value="<%=event.getUnit()%>"> <!--计量单位-->

<input type=hidden name="s_Count" value="<%=event.getCount()%>"> <!--数量-->

<input type=hidden name="s_Price" value="<%=event.getPrice()%>"> <!--单价-->

<input type=hidden name="s_Money" value="<%=event.getMoney()%>"> <!--总价-->

<input type=hidden name="s_ProviderName" value="<%=event.getProviderName()%>"> <!--供应商名称-->

<input type=hidden name="s_BillType" value="<%=event.getBillType()%>"> <!--费用类型-->

<input type=hidden name="s_BillDate" value="<%=event.getBillDate()%>"> <!--费用日期-->

<input type=hidden name="s_CreateUserId" value="<%=event.getCreateUserId()%>"> <!--创建人序号-->

<input type=hidden name="s_CreateUser" value="<%=event.getCreateUser()%>"> <!--创建人-->

<input type=hidden name="s_CreateTime" value="<%=event.getCreateTime()%>"> <!--创建时间-->

<input type=hidden name="s_BillDateStart" value="<%=event.getBillDateStart()%>"> <!--费用日期开始-->

<input type=hidden name="s_BillDateEnd" value="<%=event.getBillDateEnd()%>"> <!--费用日期-->


<%@ include file="/framework/list_head.jsp"%>

<br>
<!--********************* Part5:Search Area ***************-->
<%=uiSearchStart%>>
<%
	int key_tab = 1 ;
%>


    <%=uiSearchInputTR%>>
		<%=uiSearchInputTDHead%> nowrap>
			所属仓库：<%=SelectManager.viewWarehouseSelect(con,loginInfo.getLoginWarehouseCode(),"i_WarehouseCode",event.viewWarehouseCode(),false,"",SelectManager.SELECT_ALL,"","key_tab="+(key_tab++))%>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
		</td>
        
       <%=uiSearchInputTDHead%> nowrap>
            产品名称：<input type="text" class="texts" name="i_ProductName" size="20" value="<%=event.viewProductName()%>" key_tab="<%=key_tab++%>">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
       </td>
        
        <%=uiSearchInputTDHead%> nowrap>
            供应商名称：<input type="text" class="texts" name="i_ProviderName" size="20" value="<%=event.viewProviderName()%>" key_tab="<%=key_tab++%>">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        </td>              		
	</tr>

	<%=uiSearchInputTR%> nowrap>
		<%=uiSearchInputTDHead%> colspan="2">
			费用日期：<%=framework.custom.UIManager.generateDateInput("i_BillDateStart", event.viewBillDateStart())%> 至 <%=framework.custom.UIManager.generateDateInput("i_BillDateEnd", event.viewBillDateEnd())%>
		</td>		

			
		<%=uiSearchInputTDHead%> nowrap>	
			按排序：&nbsp;&nbsp;&nbsp;&nbsp;<select name="i_OrderField">
				<option value="" <%=(event.getOrderField().equals("1"))?"selected":""%>>设置排序字段</option>
				
				<option value="PRODUCT_NAME" <%=(event.getOrderField().equals("PRODUCT_NAME"))?"selected":""%>>产品名称</option>
				
				<option value="SPEC" <%=(event.getOrderField().equals("SPEC"))?"selected":""%>>规格</option>
				
				<option value="MODEL" <%=(event.getOrderField().equals("MODEL"))?"selected":""%>>型号</option>
				
				<option value="UNIT" <%=(event.getOrderField().equals("UNIT"))?"selected":""%>>计量单位</option>
				
				<option value="PRICE" <%=(event.getOrderField().equals("PRICE"))?"selected":""%>>单价</option>
				
				<option value="MONEY" <%=(event.getOrderField().equals("MONEY"))?"selected":""%>>总价</option>
				
				<option value="PROVIDER_NAME" <%=(event.getOrderField().equals("PROVIDER_NAME"))?"selected":""%>>供应商名称</option>
				
				<option value="BILL_DATE" <%=(event.getOrderField().equals("BILL_DATE"))?"selected":""%>>费用日期</option>
				
				<option value="CREATE_TIME" <%=(event.getOrderField().equals("CREATE_TIME"))?"selected":""%>>创建时间</option>
				
			</select>
			&nbsp;&nbsp;
			<input type="radio" name="i_OrderDesc" value="false" <%=(event.isOrderDesc()==false)?"checked":""%> >升序
			<input type="radio" name="i_OrderDesc" value="true"  <%=(event.isOrderDesc()==true)?"checked":""%>  >降序
			<input type="button" value="查询" class="buttons" onclick="doSearch();return false;">&nbsp;<input type="button" value="清空" class="buttons" onclick="doClearEvent();return false;">
		</td>
	</tr>

<%=uiSearchEnd%>

<!--列表标题-->

<%=UIManager.addListHeadTitle("总成件外修维护费用列表")%>


<%=uiListStart%>>

<%@ include file="/framework/list_foot.jsp"%>

<%
	int index = 1 ;
%>	
	<%=uiListHeadTR%>>
		<%=UIManager.addListHeadCheckBox() %>
        
        <%=UIManager.addListHead("外修类别",index++)%>

		<%=UIManager.addListHead("仓库名称",index++)%>

		<%=UIManager.addListHead("产品名称",index++)%>

		<%=UIManager.addListHead("规格",index++)%>

		<%=UIManager.addListHead("型号",index++)%>

		<%=UIManager.addListHead("计量单位",index++)%>

		<%=UIManager.addListHead("数量",index++,"num")%>

		<%=UIManager.addListHead("单价",index++,"num")%>

		<%=UIManager.addListHead("总价",index++,"num")%>

		<%=UIManager.addListHead("供应商名称",index++)%>

		<%=UIManager.addListHead("费用日期",index++)%>

		<%=UIManager.addListHead("操作",-1)%>  
	<%=uiListHeadTREnd%>>
	
	<!--data-->
<%
	for(int i=0;i<list.size();i++)
	{
		BillMoneyInput obj = (BillMoneyInput)list.get(i);
%>
	<%=uiListDataTR[i%2]%> align=center>
    	<%=uiListDataTD%>>
    		<input type="checkbox" name="ids" value="<%=obj.getId()%>">
    	</td>
        
        <%=uiListDataTD%>><%=obj.viewBillType(con)%></td>
     
    	<%=uiListDataTD%>><%=obj.viewWarehouseName(con)%></td>
    
    	<%=uiListDataTD%>><%=obj.viewProductName(con)%></td>
    
    	<%=uiListDataTD%>><%=obj.viewSpec(con)%></td>
    
    	<%=uiListDataTD%>><%=obj.viewModel(con)%></td>
    
    	<%=uiListDataTD%>><%=obj.viewUnit(con)%></td>
    
    	<%=uiListDataTD%>><%=obj.viewCount(con)%></td>
    
    	<%=uiListDataTD%>><%=obj.viewPrice(con)%></td>
    
    	<%=uiListDataTD%>><%=obj.viewMoney(con)%></td>
    
    	<%=uiListDataTD%>><%=obj.viewProviderName(con)%></td>
    
    	<%=uiListDataTD%>><%=obj.viewBillDate(con)%></td>
    
    	<%=uiListDataTD%>>
    		<a href="" onclick="bizViewBillMoneyInput('<%=obj.getId()%>');return false;">浏览</a>
    	</td>
  	</tr>
<%	
	}
%>  

<%@ include file="/framework/list_foot2.jsp"%>

<%=uiListEnd%>


<!--********************* Part7:Action Area ***************-->
<%=uiCommandStart%>>
	<%=uiCommandTR%>>
		<%=uiCommandTD%>>
		<input type=button value="    添加   " class="buttons" onclick="doToAdd();return false;">
		<!--
		<input type=button value="    复制   " class="buttons" onclick="doToCopy();return false;">
		-->
		<input type=button value="    修改   " class="buttons" onclick="doToUpdate();return false;">
		<input type=button value="    删除   " class="buttons" onclick="doDelete();return false;">
		</td>
	</tr>	
<%=uiCommandEnd%>
</form>


<%@ include file="/framework/foot.jsp"%>

<!--
	Author    :Arrow
	FileName  :/system/base/BillMoneyInputList.jsp
-->
